<?php 
	set_include_path ("/Applications/MAMP/htdocs/BullesDeMantes");
	include_once '../../administrator/connect_sql.php';
	include_once '../../BDAO/AlbumDAO.php';
	include_once 'BMetier/Categorie.class.php';
	include_once 'BMetier/Album.class.php';
?>
<html>
<head>
</head>
<body>
<h1>Test Object Metier</h1>
<?php 
	try {
		$categorie = CategorieDAO::load(1);
		$album = new Album();
		$album->setCategorie($categorie);
		$album->setCoverage("coverage");
		$album->setDescription("description");
		$album->setName("name");
		
		//$ar = AlbumDAO::store($album);
		//echo 'store id : '.$ar->getId();
		
		$al = AlbumDAO::load(15);
		echo $al;
		echo '<br />';
		
	} catch (Exception $e) {
    	echo 'Caught exception: ',  $e->getMessage(), "\n";
	}
?>
After
</body>
</html>